<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <input th:value="${test}"></input>
    <span th:utext="${test}"></span>

    <table border="1">
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>地址</th>
        </tr>
        <tr th:each="emp : ${emps}">
            <td th:text="${emp.id}">5</td>
            <td th:text="${emp.name}">6</td>
            <td>
                <span th:if="${emp.sex==0}">男</span>
                <span th:if="${emp.sex==1}">女</span>
            </td>
            <td th:text="${emp.age}">8</td>
            <td th:text="${emp.address}">8</td>
        </tr>
    </table>

</body>
</html>